import { axios } from '@/utils/request'

/**
 * 查询经营数据
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
export function biUserBusinessPage (parameter) {
  return axios({
    url: '/biUserBusiness/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 经营数据列表
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
export function biUserBusinessList (parameter) {
  return axios({
    url: '/biUserBusiness/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加经营数据
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
export function biUserBusinessAdd (parameter) {
  return axios({
    url: '/biUserBusiness/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑经营数据
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
export function biUserBusinessEdit (parameter) {
  return axios({
    url: '/biUserBusiness/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除经营数据
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
export function biUserBusinessDelete (parameter) {
  return axios({
    url: '/biUserBusiness/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出经营数据
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
export function biUserBusinessExport (parameter) {
  return axios({
    url: '/biUserBusiness/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

/**
 * 导入经营数据
 *
 * @author cy
 * @date 2022-08-08 17:50:26
 */
 export function biOpreatedDataUpload (body) {
  return axios({
    url: '/biOperatedData/upload',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: body,
    timeout: 600000,
    loading: true
  })
}
